package dao;

import model.User;
import utils.GenicaDao;

import java.sql.SQLException;

public interface UserDao extends GenicaDao<User,Integer> {
    /**
     * 根据登录编号获取对象
     * @param id 编号
     * @return User
     */
    public User findUserByUserId(int id);

    /**
     * 通过电子邮件查找用户
     * @param email
     * @return  User
     */
    public User findUserByEmail(String email);

    /**
     * 通过手机号码查询
     * @param phone
     * @return  User
     */
    public User findUserByPhone(String phone);

}
